package com.mycloud.exception;

import com.mycloud.enums.ResultEnum;

/**
 * Created by PC on 2019/1/19.
 */
public class OrderException extends RuntimeException {
    private Integer code;

    public OrderException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public OrderException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
